package com.bwie.service;

import com.bwie.pojo.TbUser;
import com.baomidou.mybatisplus.extension.service.IService;
import com.bwie.utils.R;
import com.bwie.vo.AdminLoginVo;
import com.bwie.vo.PageInfoVo;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
* @author Yoo19
* @description 针对表【tb_user(用户表)】的数据库操作Service
* @createDate 2025-04-21 18:42:38
*/
public interface TbUserService extends IService<TbUser> {

    R getUserById(Integer id);

    R adminLogin(AdminLoginVo adminLoginVo);

    R getUserList(PageInfoVo pageInfoVo);

    R register(TbUser tbUser);

    R checkUser(TbUser tbUser);

    R getMyInfo();

    R updateUser(TbUser tbUser);

    R uploadFile(MultipartFile file);

    R deleteUser(Integer userId);

    R deleteUserBatch(List<TbUser> userList);

    R getMyRoleList();

    R getUserMenuTree();
}
